package wodegua.d31_java高级.d1_junit;

public class StringUtil {
    public static Integer getLength(String name){
        if (null == name) {
            return 0;
        }
        return name.length();
    }

    public static Integer getMaxIndex(String name) {
        if (null == name) {
            return -1;
        }
        return name.length() - 1;
    }
}
